<?php
namespace app\controllers;
use yii\web\Controller;
class FrontController extends Controller{
    public function actionIndex(){
      //return $this->renderPartial('index');//不加载layout
      return $this->render('index');//自动加载layout
    }
}
